package com.stageadminserver.adminserver.service;



import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.stagecommon.common.pojo.RespBean;
import com.stagecommon.common.pojo.WorkComment;
import com.stagecommon.common.vo.WorkCommentVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yxl
 * @since 2021-11-07
 */
public interface WorkCommentService extends IService<WorkComment> {

    /**
     * 分页获取作品评论
     * @param currentPage
     * @param size
     * @param workComment
     * @return
     */
    RespBean<IPage<WorkCommentVo>> getAllWorkCommentsByPage(Integer currentPage, Integer size, WorkComment workComment);

    /**
     * 根据作品评论id修改评论
     * @param workComment
     * @return
     */
    RespBean<Integer> changeWorkCommentById(WorkComment workComment);

    /**
     * 添加作品评论
     * @param workComment
     * @return
     */
    RespBean<Integer> adminAddComment(WorkComment workComment);

    /**
     * 根据作品评论id删除评论
     * @param workComment
     * @return
     */
    RespBean<Integer> deleteWorkCommentById(WorkComment workComment);
}
